<template>
    <div class="container">
        <useModelCom v-model="val" />
        <h1>{{val}}</h1>
    </div>
</template>
<script>
    //vue里面提供了语法糖v-model 可以作用在组件上
    import useModelCom from './01.在组件上使用v-model.vue'
    export default {
        components: {
            useModelCom
        },
        data() {
            return {
                msg: "123",
                val: "model"
            }
        }
    }
</script>